import { ContentType } from '@/constant/headers'
import { ResponseType } from 'axios'
export interface NetworkConfig {
  timeout: number
  header: Headers
  tokenName: string
  responseType: ResponseType
}
interface Headers {
  contentType: string
}
const _header: Headers = {
  contentType: ContentType.JSON
}

const networkConfig: NetworkConfig = {
  timeout: 10000,
  header: _header,
  tokenName: 'auth-token',
  responseType: 'json'
}

export default networkConfig
